package com.yeqifu.sys.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.tomcat.util.bcel.Const;

/**
 * @Author: 艾琦-
 * @Date: 2020/11/21 21:35
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResultObj {

    private Integer code;
    private String msg;

    public static final ResultObj LOGIN_SUCCESS=new ResultObj(Constast.OK,"登陆成功");
    public static final ResultObj LOGIN_ERROR_PASS=new ResultObj(Constast.ERROR,"用户名或密码错误");
    public static final ResultObj LOGIN_ERROR_CODE=new ResultObj(Constast.ERROR,"验证码错误");

    public static final ResultObj ADD_SUCCESS = new ResultObj(Constast.OK,"添加成功");
    public static final ResultObj ADD_ERROR = new ResultObj(Constast.ERROR,"添加失败");
    public static final ResultObj ADD_TYPE_EXIST = new ResultObj(Constast.ERROR,"该类型已经存在");


    public static final ResultObj REALADD_SUCCESS = new ResultObj(Constast.OK,"入库成功");
    public static final ResultObj REALADD_ERROR = new ResultObj(Constast.ERROR,"入库失败，请检查是否分配货架");

    public static final ResultObj REALOUT_SUCCESS = new ResultObj(Constast.OK,"出库成功");
    public static final ResultObj REALOUT_ERROR = new ResultObj(Constast.ERROR,"出库失败");

    public static final ResultObj DELETE_SUCCESS = new ResultObj(Constast.OK,"删除成功");
    public static final ResultObj DELETE_ERROR = new ResultObj(Constast.ERROR,"删除失败");
    public static final ResultObj DELETE_TYPE_ERROR = new ResultObj(Constast.ERROR,"具有属于该类型的商品信息,请核实删除商品信息，再删除该类型");

    public static final ResultObj UPDATE_SUCCESS = new ResultObj(Constast.OK,"修改成功");
    public static final ResultObj UPDATE_ERROR = new ResultObj(Constast.ERROR,"修改失败，请检查订单状态");

    public static final ResultObj UPDATESHELF_SUCCESS = new ResultObj(Constast.OK,"分配成功！");
    public static final ResultObj UPDATESHELF_ERROR = new ResultObj(Constast.ERROR,"分配失败，请检查订单状态");

    public static final ResultObj RESET_SUCCESS = new ResultObj(Constast.OK,"重置成功");
    public static final ResultObj RESET_ERROR = new ResultObj(Constast.ERROR,"重置失败");

    public static final ResultObj DISPATCH_SUCCESS = new ResultObj(Constast.OK,"分配成功");
    public static final ResultObj DISPATCH_ERROR = new ResultObj(Constast.ERROR,"分配失败");

    public static final ResultObj RECALLINPORT_SUCCESS = new ResultObj(Constast.OK,"订单取消成功！");
    public static final ResultObj RECALLINPORT_ERROR_1 = new ResultObj(Constast.OK,"订单撤回失败,请检查订单状态！");
    public static final ResultObj RECALLINPORT_ERROR_2 = new ResultObj(Constast.OK,"订单撤回失败,灾难性错误！");

    public static final ResultObj SYNCCACHE_SUCCESS = new ResultObj(Constast.OK,"同步缓存成功");

    public static final ResultObj SETSHELF_SUCCESS = new ResultObj(Constast.OK,"设置成功");
    public static final ResultObj SETSHELF_ERROR= new ResultObj(Constast.OK,"设置失败");

    public static final ResultObj DELETE_ERROR_NEWS = new ResultObj(Constast.ERROR,"删除用户失败，该用户是其他用户的直属领导，请先修改该用户的下属的直属领导，再进行删除操作");
    public static final ResultObj DELETE_QUERY = new ResultObj();
    

}
